home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
disk
/
bkpwiz31.zip
/
BKPWIZ.EXE
/
GO.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-10-19
|
4KB
|
187 lines
@echo off
echo prompt=%prompt% > prmptold.bat
set clksw=0
call prompt1
call doclock
set clksw=1
set logon=0
:Begin
:MAIN_MENU
Wizmenu bkpwiz.mnu /o /d- /T3 /w300 >nul
If Errorlevel 8 goto exit
If Errorlevel 7 goto Docs
If Errorlevel 6 goto doMOVEZIP
If Errorlevel 5 goto doSYNCHRO
If Errorlevel 4 goto doUNPACK
If Errorlevel 3 goto doBKPEXT
If Errorlevel 2 goto doBKUP
If Errorlevel 1 goto doDRV
goto exit
:doDRV
set prog=BKPDRV
goto start
:dobkup
set prog=BKUP
goto start
:dobkpext
set prog=BKPEXT
goto start
:dounpack
set prog=UNPACK
goto start
:doSYNCHRO
set prog=SYNCHRO
goto start
:domovezip
set prog=MOVEZIP
goto start
:docs
getdocs
:start
type return
echo YOU ANSWERED: %prog%.EXE
type return
set Parm3=
Set Parm4=zip
If %Prog%==SYNCHRO goto contbkup
REM
echo Specify the BACKUP DRIVE (Letter only) (OR Source Drive for MOVEZIP)
echo =====================================================
Tellme "Drive to Backup to: " /c 74 /D /MBKPDRV /O: /I /Q
type return
Tellme " DRIVE %bkpdrv% SELECTED (Enter to Accept)" /C 31 /Q
REM
REM
REM HERE TO PROGRAM 'BKPDRV'
REM
If not %Prog%==BKPDRV goto contbkup
call showme specdrv.txt
Tellme "Entire Drive (to Backup):" /c 74 /D /MMYDRV /O: /I /Q
type return
Tellme "DRIVE %mydrv% SELECTED FOR BACKING UP. (Enter to Accept)" /C 31 /Q
type return
set mydir=%mydrv%
set logon=1
clrx 2
onscrn "Processing.....Please wait" /c 79 /q
call %prog% %mydir% %bkpdrv%
goto nextb
:contbkup
REM
REM Here for picking up FIRST-LEVEL DIR PATH
REM
echo Specify Directory Path to (Backup/Retrieve/Target for Synchro):
call showme specdir.txt
Tellme "Directory Path (or Synchro Target): " /c 74 /MMYDIR /F40 /Q
type return
Tellme "Selected DIRECTORY PATH : %mydir% (Enter to Accept)" /C 31 /Q
type return
call drvdir %mydir%
If %Prog%==BKPEXT goto contbkx
If %Prog%==UNPACK goto contunpk
If %Prog%==SYNCHRO goto contsync
If %Prog%==MOVEZIP goto contmzip
Tellme "Protect this particular Backup from being overwritten? :" /C 14 /Y /Q
type return
If Errorlevel 0 set Parm3=
If Errorlevel 1 set Parm3=P
goto Process
REM
REM Here for 'BKPEXT' Processing
REM
:contbkx
type return
echo Please specify the File Extension Filter such as DOC, MAC TXT etc.
Tellme "Extensionn Filter:" /c 30 /MPARM3 /Q
type return
Tellme "Selected EXTENSION : %parm3% (Enter to Accept)" /C 31 /Q
type return
goto Process
REM
REM Here for 'UNPACK' Processing
REM
:contunpk
call showme unpack.txt
type return
Tellme " Datestamp or ^+extension (ENTER for normal 'zip'):" /c 30 /MPARM3 /Q
type return
Tellme "Selected EXTENSION to retrieve : %parm3% (Enter to Accept)" /C 31 /Q
type return
goto Process
:contsync
set Parm4=
echo Specify the Source Directory Path to update/synchronize with:
Tellme "Directory Path for Update : " /c 74 /MBKPDRV /F35 /Q
type return
Tellme "Selected DIRECTORY PATH : %bkpdrv% (Enter to Accept)" /C 31 /Q
type return
Tellme "Freshen Existing files only? :" /C 14 /Y /Q
type return
If Errorlevel 0 set Parm3=-u
If Errorlevel 1 set Parm3=-f
If %Parm3%==-f set text=FRESHEN
If %Parm3%==-u set text=UPDATE
:call %prog% %mydir% %bkpdrv% %parm3%
goto process
:contmzip
echo This is MOVEZIP processing
set Parm4=zip
type return
echo Please Specify the Drive to MOVE the (Compressed) file TO:
echo ===================================================================
Tellme "Drive to move the Backup file to: " /c 74 /D /MPARM3 /O: /I /Q
type return
Tellme " DRIVE %PARM3% SELECTED TO MOVE TO (Enter to Accept)" /C 31 /Q
echo If you are moving a Backup File with an unique 'non-zip' extension,
echo such as a Datestamp or an EXTENSIOON, please specify it at the
echo following prompt. OTHERWISE simply Press ENTER.
Pause
Tellme "File Extension or Datestamp or ENTER for neither:" 31 /MPARM4 /Q
If %Parm4%*==* set Parm4=zip
set text=MOVED TO
rem
rem PROCESS THE ACTUAL COMMAND HERE.
rem
:Process
call myproc
:nextb
@echo off
:set Mydir=
:set Bkpdrv=
:set Parm3=
set nolog=
set bkpdir=
set Bkname=
set Bkpfl=
set Ext=
set Mypath=
rem set Ans=
Tellme "More Directories to Backup (Retrieve)?" /c 14 /Y /Q
:echo you answered %ans%
If Errorlevel 1 goto begin
type return
Tellme "Continue with Documentation?" /c 14 /Y /Q
If Errorlevel 1 getdocs
call prmptold
call showme logoff.txt
type return
:exit